import type { ComponentProps, Dispatch, ChangeEvent as ReactChangeEvent, ReactNode, RefObject, SetStateAction } from 'react'; import type { Checkbox } from '../../Data Entry/Checkbox'; import type { ColumnProps } from './types'; type RowState = Record; export type ListContextValue = { /** * @returns an unregister function */ registerExpandableRow: (rowId: string, expanded?: boolean) => () => void; expandedRowIds: RowState; expandRow: (rowId: string) => void; collapseRow: (rowId: string) => void; expandButton: boolean; /** * @returns an unregister function */ registerSelectableRow: (rowId: string) => () => void; allRowSelectValue: ComponentProps['checked']; selectAllHandler: (event: ReactChangeEvent) => void; subscribeHandler: () => void; columns: ColumnProps[]; inRange: string[]; selectable: boolean; selectAll: () => void; selectedRowIds: RowState; selectRow: (rowId: string) => void; unselectAll: () => void; unselectRow: (rowId: string) => void; refList: RefObject[]; setRefList: Dispatch[]>>; handleOnChange: (value: string, checked: boolean) => void; colMode?: 'strict' | 'flexible'; }; export type ListProviderProps = { children: ReactNode; autoCollapse: boolean; selectable: boolean; expandButton: boolean; onSelectedChange?: Dispatch>; columns: ColumnProps[]; colMode?: 'strict' | 'flexible'; }; export declare const ListProvider: ({ children, autoCollapse, selectable, expandButton, onSelectedChange, columns, colMode, }: ListProviderProps) => import("react").JSX.Element; export declare const useListContext: () => ListContextValue; export {}; //# sourceMappingURL=ListContext.d.ts.map